package cn.hxzy.student.controller;

import cn.hxzy.common.domain.ClassTable;
import cn.hxzy.common.response.R;
import cn.hxzy.student.service.ClassTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ClassTable")
public class ClassTableController {
    @Autowired
    private ClassTableService classTableService;

    @GetMapping("/selectListClass")
    public R<List<ClassTable>> selectListClass() {
        List<ClassTable> list = classTableService.list();
        return R.success(list);
    }

}
